package com.yonyou.gmmc.service.JDInterface.dao;

import java.util.List;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.JDInterface.model.TmTpProductCategory;
import tk.mybatis.mapper.common.Mapper;
@OracleDb
public interface TmTpProductCategoryMapper extends Mapper<TmTpProductCategory> {

	/**
	 * 插入规格
	 * @param param
	 */
	void insertCategory(TmTpProductCategory param);

	/**
	 * 是否存在
	 * @param catId
	 * @return
	 */
	Integer selectIfExist(Integer catId);

	/**
	 * 更新规格
	 * @param param
	 */
	void updateCategory(TmTpProductCategory param);

	/**
	 * 拿到父级id
	 * @param catClass
	 * @return
	 */
	List<TmTpProductCategory> queryParentId(Integer catClass);
}